<template>
	<view class="container">
		<view class="content-box">
			
			<text class="title">{{info.title}}</text>
			<view class="content"><rich-text :nodes="info.content"></rich-text></view>
			
		</view>
			
	
	</view>
	
</template>

<script>
	
	export default {
		
		data() {
			return {
				info:{},
				content:'ddddd',
				id:'7',
				empty:false

			}
		},
		onLoad(options) {
			this.getPageDetail()
			
			},
		onShow(){
			
		},	
		methods: {
			getPageDetail:function(){
				let that = this
				
				
				that.$H.post('sapi/page/dedail',{id:that.id}).then(res => {
					if(res.status == 200 && res.data){
						that.info = res.data;
						
					}else{
						that.empty = true
					}
								
					})
				
			},
			
			
		}
	}
</script>

<style>
	.container {
		padding: 0 50rpx 40rpx 50rpx;
		box-sizing: border-box;
	}
	.title {
		display: flex;
		font-weight:bold;
		align-items: center;
		justify-content: center;
		padding: 10rpx 0 20rpx 0;
	}
	.content-box {
		width: 100%;
		margin-top: 10px;
		padding: 30rpx;
		box-sizing: border-box;
		background-color: #fff;
		border-radius: 10rpx;
		box-shadow: 0 0 10rpx #eee;
	}
	
	.content {
		color: #333;
		font-size: 30rpx;
		line-height: 44rpx;
		padding: 10rpx 0;
		text-align: justify;
	}

	
	
</style>
